﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WenSkin.Controls
{
    public class WenCheckedListBox : CheckedListBox
    {
        public WenCheckedListBox():base()
        {
            BackColor = Color.FromArgb(37, 37, 38);
            ForeColor = Color.White;
        }
        protected override void OnDrawItem(DrawItemEventArgs e)
        {

            DrawItemEventArgs e2 = new DrawItemEventArgs(e.Graphics, e.Font, new Rectangle(e.Bounds.Location, e.Bounds.Size), e.Index, (e.State & DrawItemState.Focus) == DrawItemState.Focus ? DrawItemState.Focus : DrawItemState.None, Color.White, this.BackColor);
            base.OnDrawItem(e2);
        }
    }
}